package grape.base.rest.client.impl.dept;

import grape.base.rest.client.dept.DeptClient;
import grape.base.rest.dept.mvc.DeptInnerController;
import grape.base.service.dept.po.Dept;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by yangwei
 * Created at 2020/9/15 17:48
 */
@Component
public class DeptClientImpl implements DeptClient {

    @Autowired
    private DeptInnerController deptInnerController;

    @Override
    public String trans(String type, String key) {
        return deptInnerController.trans(type,key);
    }

    @Override
    public boolean support(String type) {
        return deptInnerController.support(type);
    }

    @Override
    public Dept getDeptById(String id) {
        return deptInnerController.getDeptById(id);
    }
}
